from Data_Type import *
from MEMORY import *
from Register_File import *

def IF(PC : register , mem:Memory ,mmu:MMU):
    text_phy_addr = mmu.Linear2Physical(PC.value,mem,0)
    Instr = mem.Data32_port_out(text_phy_addr)
    return Instr
